package com.grt192.benchtest.controller;

import com.grt192.benchtest.mechanism.BenchCameraAssembly;
import com.grt192.core.StepController;

/**
 *
 * @author anand
 */
public class BenchCameraController extends StepController{

    private BenchCameraAssembly cameraPart;
    private double angle;

    public BenchCameraController(BenchCameraAssembly cameraPart) {
        this.cameraPart = cameraPart;
        angle = 90;
    }

    public void act() {
        cameraPart.rotateCamera(angle);
        angle++;
        if(angle > 130)
            angle = 90;
    }

}
